package com.tl.boot.controller;

import com.tl.boot.common.annotation.RestControllerRequstMapping;
import com.tl.boot.common.annotation.WithPermission;
import com.tl.boot.common.vo.ResponseVO;
import io.swagger.annotations.Api;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * com.tl.boot.controller -- OrgController
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/9/20 12:46
 */
@RestControllerRequstMapping("auth/org")
@Api(tags = "组织机构模块")
public class OrgController {

    @PostMapping("add")
    @WithPermission(role = {"sysadmin"})
    @Transactional(rollbackFor = Exception.class,transactionManager = "dynamicTxManager")

    public ResponseVO addOrgInfo() {
        return ResponseVO.buildSuccess();
    }
}
